package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.BAnjuanOld;
import com.ruoyi.system.mapper.BAnjuanOldMapper;
import com.ruoyi.system.service.IBAnjuanOldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * 旧案卷操作Service业务层处理
 * 
 * @author zzr
 * @date 2023-09-16
 */
@Service
public class BAnjuanOldServiceImpl implements IBAnjuanOldService 
{
    @Autowired
    private BAnjuanOldMapper bAnjuanOldMapper;

    /**
     * 查询旧案卷操作
     * 
     * @param recid 旧案卷操作主键
     * @return 旧案卷操作
     */
    @Override
    public BAnjuanOld selectBAnjuanOldByRecid(String recid)
    {
        return bAnjuanOldMapper.selectBAnjuanOldByRecid(recid);
    }

    /**
     * 查询旧案卷操作列表
     * 
     * @param bAnjuanOld 旧案卷操作
     * @return 旧案卷操作
     */
    @Override
    public List<BAnjuanOld> selectBAnjuanOldList(BAnjuanOld bAnjuanOld)
    {
        return bAnjuanOldMapper.selectBAnjuanOldList(bAnjuanOld);
    }

    /**
     * 新增旧案卷操作
     * 
     * @param bAnjuanOld 旧案卷操作
     * @return 结果
     */
    @Override
    public int insertBAnjuanOld(BAnjuanOld bAnjuanOld)
    {
        return bAnjuanOldMapper.insertBAnjuanOld(bAnjuanOld);
    }

    /**
     * 修改旧案卷操作
     * 
     * @param bAnjuanOld 旧案卷操作
     * @return 结果
     */
    @Override
    public int updateBAnjuanOld(BAnjuanOld bAnjuanOld)
    {
        return bAnjuanOldMapper.updateBAnjuanOld(bAnjuanOld);
    }

    /**
     * 批量删除旧案卷操作
     * 
     * @param recids 需要删除的旧案卷操作主键
     * @return 结果
     */
    @Override
    public int deleteBAnjuanOldByRecids(String[] recids)
    {
        return bAnjuanOldMapper.deleteBAnjuanOldByRecids(recids);
    }

    /**
     * 删除旧案卷操作信息
     * 
     * @param recid 旧案卷操作主键
     * @return 结果
     */
    @Override
    public int deleteBAnjuanOldByRecid(String recid)
    {
        return bAnjuanOldMapper.deleteBAnjuanOldByRecid(recid);
    }

    @Override
    public int updateAnJuanByEEid(String engId){
        return bAnjuanOldMapper.updateAnJuanByEEid(engId);
    }

    @Override
    public int updateAnJuanBingStatus(HashMap<String, Object> map){return bAnjuanOldMapper.updateAnJuanBingStatus(map);}
}
